
import random


def fun(*p):
    p = p+(10,)
    print(p)

def get_process(pcurr,plen):
    str_process = str(round(pcurr / plen, 4))[2:]
    return str_process[0:2]+'.'+str_process[2:]+'%'

if __name__=='__main__':


    ll = ['guo']
    print('\n'.join(ll))

    lst = [ random.randint(1,100) for i in range(10)]
    print(lst)

    length = len(lst)
    for i  in range(length-1):
        k = i
        for j in range(i,length):
            if lst[j]<lst[k]:
                k = j
        if k!=i:
            lst[i],lst[k] = lst[k],lst[i]
    print(lst)

    print(3*5)







    # fr = []
    # def myf(frame):
    #     fa = ['12', '23']
    #     fr = fa
    #     myf(fr)
    # print(fr,222)
    #
    # s1 = {1,2,3,4,4}
    # s2 = {10,9,8,1}
    # print(s1.union(s2),s1)

    print(len('\n'))


    print(1/4)
    print(len(str(7/9)))

    l1 = [1,2,3]
    l2 = [1,2,3]
    l3 = [1,2,3]
    print(id(l1),id(l2),l1==l2)




    '& 位与；^ 位异或'

    ls = list(range(10))
    print(ls)
    print(ls[-1:-6:1])
    print(ls[0:-6:-1])
    print(ls[6::-1])

    ls2 = [x for x in range(10)]

    print(get_process(33,298))

    ls = [ random.randint(1,100) for i in range(10)]
    print(ls)
    myavg = sum(ls)/len(ls)
    lsmax = [i for i in ls if i>myavg]
    print(f"平均值是{myavg}",lsmax)

    s = '123456'
    print(s[-6::-1])
    print(s[-3::-1])

    print(5.0%3)
    print(-7 % -2)
    print(-7 % 2)
    print(11 % -4)

    ll = [ input("请输入:") for i in range(10)]
    print(ll)

